<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
 
class Dashboard extends CI_Controller {

    function __construct()
    {
        parent::__construct();
        $this->load->library('output');
        $this->output->nocache();

        // check if already logged in
        if ( ! $this->session->userdata('logged_in_user'))
        {
            redirect('login');
        }
    }

    /**
     * Display Dashboard page
     * @return void
     */
    public function index()
	{
        $page_info['title'] = 'Dashboard :: Robi CMS';
        $page_info['url_suffix'] = $this->config->item('url_suffix');
        $page_info['view_page'] = 'administrator/dashboard';

		$this->load->view('administrator/layouts/default', $page_info);
	}

}

/* End of file dashboard.php */
/* Location: ./application/controllers/dashboard.php */